<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="/WEB-INF/templates/templateFormulario.xhtml">

	<ui:define name="formContent">
	<style>
		.ui-panel .ui-panel-content {
	    padding: 0em 0em;
	}
 	</style>
	<p:scrollPanel style="width:900px;height:auto" mode="native">
	<p:panelGrid>
		<p:row>
			<p:column style="vertical-align: top; padding: 0 0 0 0">
		    		<p:panel header="#{msg['message.padPP.labelUO']}" toggleable="true" toggleOrientation="horizontal" style="padding: 0;">
					<p:tree id="definirConstantes" value="#{definirConstantesMB.root}" var="node"
						selectionMode="single" selection="#{definirConstantesMB.selectedNode}" dynamic="true">
						 <p:ajax event="select" execute="@this :formgral:sociedad"
							update=":formgral:panelCaptura :formgral:panelMsg :formgral:panelSociedad"
							listener="#{definirConstantesMB.onNodeSelect}"/>
		
						<p:treeNode>
							<h:outputText value="#{node}" />
						</p:treeNode>
					</p:tree>
					</p:panel>
			</p:column>
	    
	    	<p:column>
			    	<ui:include src="capturaMontos.xhtml"/>
		   	</p:column>
		 </p:row>
	</p:panelGrid>
	</p:scrollPanel>
	</ui:define>
	
</ui:composition>